package com.ang.async.test01;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author ssang
 * @date 2022-07-19 12:13
 */
@Component
public class TaskUtil {
    @Async
    public void tesk01(String str) throws Exception{
        Thread.sleep(1000);
        System.out.println("接收到："+str);
    }
}
